﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ModelLibrary
{
    public class AppSets
    {

        public static string InstancePath { get { return _InstancePath; } set { _InstancePath = value; } }
        private static string _InstancePath = System.IO.Directory.GetCurrentDirectory() + "\\Instance";

        public static Encoding Encodings { get { return _Encodings; } set { _Encodings = value; } }
        private static Encoding _Encodings = Encoding.UTF8;

        public static string TimeFormatString { get { return _TimeFormatString; } set { _TimeFormatString = value; } }
        private static string _TimeFormatString = "yyyy-MM-dd HH:mm:ss";

        public static System.Drawing.Image imgTrue { get { return _imgTrue; } }
        private static System.Drawing.Image _imgTrue = DrawingStatusImage.StatusImage(new System.Drawing.Size(23, 23), true);

        public static System.Drawing.Image imgFalse { get { return _imgFalse; } }
        private static System.Drawing.Image _imgFalse = DrawingStatusImage.StatusImage(new System.Drawing.Size(23, 23), false);

        public static string[] BackupType { get { return new string[] { "完整备份", "差异备份", "日志备份", }; } }

        public static string[] DatabaseType { get { return new string[] { "SqlServer", "MySql", "Oracle", "Db2", "MonGoDb", }; } }

        public static string BackupPath { get { return _BackupPath; } set { _BackupPath = value; } }
        private static string _BackupPath = System.IO.Directory.GetCurrentDirectory() + "\\Backup";

        public static string[][] TypeOfActionCycle { get { return _TypeOfActionCycle; } }
        private static string[][] _TypeOfActionCycle = new string[][]
        {
            new string[] { "plTimeStack", "按时间点" },
            new string[] { "plEveryDays", "每*天" },
            new string[] { "plEveryHours", "每*小时" },
            new string[] { "plEveryMinutes", "每*分" },
            new string[] { "plWeeklyWeek", "每周星期*" },
            new string[] { "plNumberOfMonths", "每月*号" },    };

        public static string[] DatabaseSelectRange { get { return _DatabaseSelectRange; } }
        private static string[] _DatabaseSelectRange = new string[] { "AllDatabase", "UserDatabase", "SysDatabase" };

    }
}
